#define _CRT_SECURE_NO_WARNINGS 1



#include<stdio.h>

void fd(int* a, int size)
{
	int count;
	for (int i = 0; i < size; ++i)
	{
		count = 0;
		for (int j = 0; j < size; ++j)
		{
			if ((a[i] ^ a[j]) == 0)
			{
				count++;
			}
		}
		if (count != 2)
		{
			printf("%d\n",a[i]);
		}
	}
}

int main()
{
	int a[] = { 1,2,3,4,5,1,2,3,4,6 };
	fd(a, sizeof(a) / sizeof(a[0]));
	return 0;
}